﻿using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class _Default : System.Web.UI.Page 
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }

    protected void ImgBtnOK_Click(object sender, ImageClickEventArgs e)
    {
        //使用Format方法格式化字符串
        string str1 = String.Format("(d) Short date: {0:d}\n", DateTime.Now);
        string str2 = String.Format("(C) Currency:{0:C}\n", 89.0f);
        this.TxtShortDate.Text = str1;
        this.TxtCurrency.Text = str2;
    }
    protected void ImgBtnCZ_Click(object sender, ImageClickEventArgs e)
    {
        this.TxtShortDate.Text = "";
        this.TxtCurrency.Text = "";
    }
}
